Skip to main content

orientation

Type

property

Summary

Reports whether a scrollbar is vertical or horizontal--that is, whether its height or width property is greater.

Syntax

get the orientation of <scrollbar>

Description

Use the orientation property to find out whether a scrollbar is horizontal or vertical.

If the scrollbar's height is greater than or equal to its width, the scrollbar is vertical. If the width is greater than the height, the scrollbar is horizontal.

To change a scrollbar's orientation, change its width and height properties.

Examples

if the orientation of scrollbar 2 is vertical then beep

glossary: property

keyword: scrollbar

property: height, properties, rectangle, width

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?